package com.xzy.spring.business.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author xzy
 * @date 2021-02-12 16:18
 * 说明：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthorEntity {

    @Value("${author.name}")
    private String authorName;

    @Value("#{2021-1997}")
    private Integer age;

    @Value("man")
    private String sex;
}
